<extend name="Member:base" />
<block name="title"><title>心心向善-退款及换货</title></block>
		<!-- 头部结束-->
<block name="body">

			<!--<主要区块>-->

			<div class="right-layout">
			<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/jquery.ui.css">
			<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/lib/jedate/skin/jedate.css"/>
			<script src="__PUBLIC__/Home/lib/jedate/jedate.min.js" type="text/javascript" charset="utf-8"></script>

				<div class="wrap">
					<div class="tabmenu">
						<ul class="tab pngFix">
							<li class="active">
								<a href="/member/tksq.html">退款申请</a>
							</li>
							<li class="normal">
								<a href="/member/thsq.html">换货申请</a>
							</li>
							<!-- <li class="normal">
								<a href="xndmtk.html">虚拟兑码退款</a>
							</li> -->
						</ul>
					</div>
					<form method="get" action="tksq.html">
						<!-- <input type="hidden" name="act" value="member_refund">
						<input type="hidden" name="op" value="index"> -->
						<table class="ncm-search-table">
							<tbody>
								<tr>
									<td>&nbsp;</td>
									<th>申请时间</th>
									<td class="w240"><input name="add_time_from" id="add_time_from" type="text" class="text w70 hasDatepicker" value="{$kstime}" readonly="readonly"><label class="add-on"><i class="icon-calendar"></i></label>&nbsp;–&nbsp;<input name="add_time_to" id="add_time_to" type="text" class="text w70 hasDatepicker" value="{$jstime}" readonly="readonly"><label class="add-on"><i class="icon-calendar"></i></label></td>
									<th>
										<select name="type">
											<option value="order_sn" {$type0}>订单编号</option>
											<option value="tk_num" {$type1}>退款编号</option>
											<option value="product_name" {$type2}>商品名称</option>
										</select>
									</th>
									<td class="w160"><input type="text" class="text w150" name="key" value="{$keys}"></td>
									<td class="w70 tc">
										<label class="submit-border">
								            <input type="submit" class="submit" value="搜索">
								          </label>
									</td>
								</tr>
							</tbody>
						</table>
						<script type="text/javascript">
		                    jeDate({
		                        dateCell:"#add_time_from",
		                        format:"YYYY-MM-DD",
		                        isTime:false,
		                        minDate:"1900-1-1",
		                        maxDate:"2099-12-12"
		                    });
		                    jeDate({
		                        dateCell:"#add_time_to",
		                        format:"YYYY-MM-DD",
		                        isTime:false,
		                        minDate:"1900-1-1",
		                        maxDate:"2099-12-12"
		                    });
		                
					    </script>
					</form>
					<table class="ncm-default-table order">
						<thead>
							<tr>
								<th class="w10"></th>
								<th colspan="2">商品</th>
								<th class="w100">退款金额（元）</th>
								<th class="w100">审核状态</th>
								<th class="w100">平台确认</th>
								<th class="w100">操作</th>
							</tr>
						</thead>
						<tbody>
						<foreach name='list' item='v'>
							<tr>
								<td colspan="20" class="sep-row"></td>
							</tr>
							<tr>
								<th colspan="20"> <span class="ml10">退款编号：{$v.tk_num}</span><span>申请时间：{$v.sq_time|date="Y-m-d H:i:s",###}</span>

									<!-- store_name -->
									<span> <a href="#" target="_blank" title="">{$v.store_name}</a></span>

									<!-- QQ -->
									<span member_id="4">
          
          <!-- wang wang -->
                    </span></th>
							</tr>
							<tr class="bd-line">
								<td class="bdl"></td>
								<td class="tl" colspan="2">
									<dl class="goods-name">
										<dt>{$v.product_name}</dt>
										<dd>订单编号：
											<a href="index.php?act=member_order&amp;op=show_order&amp;order_id=5" target="_blank">{$v.order_sn}</a>
										</dd>
									</dl>
								</td>
								<td>{$v.tk_price}</td>
								<td>
								<if condition="$v.status eq 1" >待商家审核</if>
								<if condition="$v.status eq 2" >待平台审核</if>
								<if condition="$v.status eq 3" >退款成功</if>
								</td>
								<td>
								<if condition="$v.status eq 3" >
								确认
								<else/>
								无
								</if>
								</td>
								<td class="bdr">
									<a href="/member/tkxx.html?id={$v.id}" class="ncm-btn">查看 </a>
								</td>
							</tr>
						</foreach>
						</tbody>
<style type="text/css">
.pagination li span,.pagination li a{
    font: normal 14px/20px "microsoft yahei";
    color: #AAA;
    background-color: #FAFAFA;
    text-align: center;
    display: block;
    min-width: 20px;
    padding: 8px;
    border: 1px solid #E6E6E6;
    position: relative;
    z-index: 1;
}
.pagination li a:hover{
    border-color:#F87622;
    color:#F87622;
}
.pagination li span.current {
    color: #AAA;
    font-weight: bold;
    background-color: #FAFAFA;
    border-color: #E6E6E6;
    position: relative;
    z-index: 2;
}
.pagination li a.first{
	margin-right: 8px;
}
.pagination li a.end{
	margin-left: 8px; 
}

</style>
						<tfoot>
							<tr>
								<td colspan="20">
									<div class="pagination">
										<ul>
											{$page}
										</ul>
									</div>
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
				<script type="text/javascript" src="__PUBLIC__/Home/js/zh-CN.js" charset="utf-8"></script>
				<script type="text/javascript">
					$(function() {
						$('#add_time_from').datepicker({
							dateFormat: 'yy-mm-dd'
						});
						$('#add_time_to').datepicker({
							dateFormat: 'yy-mm-dd'
						});
					});
				</script>
			</div>

			<!--</主要区块>-->
			<div class="clear"></div>
		</div>
	</block>